/**
 * https://es6.ruanyifeng.com/#docs/array
 */
import React from 'react';
import './index.less';
import { useParams } from 'react-router-dom';
import Title from '../../components/title';
import LetAndVarAndConst from './let_var_const';
import Jiegou from './jiegou';
import ProxyCom from './proxy';
import SetCom from './setdemo';
import MapCom from './mapcom';
import ArrayCom from './array';

function Es6Demo(props: any) {
  console.log('es6-demo proops', props);

  const routeParams: any = useParams();
  const routeTitle = routeParams.title;

  return (
    <div className='es6-demo'>
      <Title title={routeTitle} left={true} />
      <LetAndVarAndConst />
      <Jiegou />
      <ProxyCom />
      <SetCom />
      <MapCom />
      <ArrayCom />
    </div>
  );
}
export default Es6Demo;
